package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;
import ${package.Mapper}.${table.mapperName};
import ${package.Other}.${entity}AddDTO;
import ${package.Other}.${entity}UpdateDTO;
import ${package.Other}.${entity}QueryDTO;
import ${package.Parent}.vo.${entity}QueryVO;
import ${package.Parent}.vo.${entity}PageVO;
import com.github.pagehelper.PageInfo;
import java.util.List;

/**
 * ${table.comment!} Service Impl类
 *
 * @author ${author}
 * @since ${date}
 */
@Service
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {

    private final ${table.mapperName} mapper;

    public ${table.serviceImplName}(${table.mapperName} mapper) {
        this.mapper = mapper;
    }

    @Override
    public Object add(${entity}AddDTO addDto) {
        return null;
    }

    @Override
    public Object deletes(List<String> ids) {
        return null;
    }

    @Override
    public Object edit(${entity}UpdateDTO updateDto){
        return null;
    }

    @Override
    public PageInfo<${entity}PageVO> page(${entity}QueryDTO queryDto) {
        return new PageInfo<>();
    }

    @Override
    public ${entity}QueryVO detail(String id) {
        return null;
    }

}
</#if>
